//
//  ViewController.swift
//  CellAutolayoutHeight
//
//  Created by zk_01 on 2022/3/30.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        
        
    }
    
    @IBAction func click(_ sender: UIButton) {
        
        let homeVC = HomeViewController()
        homeVC.dataSourece =  DataPrepare.shared.loadData()
        homeVC.modalPresentationStyle = .automatic
        self.present(homeVC, animated: true) {
            
        }
    }
    
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
